﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jxym.DBUtility;
using Jxym.wlkc2011.Module.CMS.MODEL;
using Jxym.wlkc2011.Module.CMS.Public;
using Jxym.wlkc2011.WebSite;

namespace Jxym.wlkc2011
{
    public partial class videoPlayer2 : System.Web.UI.Page
    {
        private string _navigationHtml;
        private string _videoFile;
        public string VideoFile
        {
            get { return _videoFile; }
            set { _videoFile = value; }
        }
        private string _menuTitle;
        private string _contentTitle = "提示信息";
        private string _contentUser;
        private string _contentDate;

        public string ContentTitle
        {
            get { return _contentTitle; }
            set { _contentTitle = value; }
        }
        public string ContentUser
        {
            get { return _contentUser; }
            set { _contentUser = value; }
        }
        public string ContentDate
        {
            get { return _contentDate; }
            set { _contentDate = value; }
        }
        public string NavigationHtml
        {
            get { return _navigationHtml; }
            set { _navigationHtml = value; }
        }
        public string MenuTitle
        {
            get { return _menuTitle; }
            set { _menuTitle = value; }
        }
        public string _siteName { get; set; }
        public string _contentHtml = "暂无信息";
        private string _contentId;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Params["siteName"] != null)
            {
                _siteName = Request.Params["siteName"];
            }

            MsSqlDal<Cms_Content> cct = new MsSqlDal<Cms_Content>();
            _contentId = Request.Params["content"];
            Cms_Content info = cct.GetModel(_contentId);
            if (Request.Params["content"] != null && Request.Params["siteName"] != null)
            {

                if (info != null)
                {
                    if (info.VideoFileName != "no.jpg")
                    {
                        _contentHtml = cmsPublic.ViewContentByFileType(Request.Params["siteName"], info.FileName, "700", "440", false);

                    }
                    Label1.Text = info.Title;
                }
            }
            IList<Cms_Content> list = cct.GetList("ContentClassID=" + info.ContentClassID, null, "", 0);
            if (list != null)
            {
                Repeater1.Visible = true;
                Repeater1.DataSource = list;
                Repeater1.DataBind();
            }
            if (Request.Params["siteName"] != null)
            {
                _siteName = Request.Params["siteName"];
                Jxym.wlkc2011.MyGet.GetIDByName(zjgx1, "主讲人");
            }
        }
    }
}